﻿/* Base Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.detailsbox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.detailsleft {
    flex: 3;
}

/* Code Block */
.editor-colors {
    position: relative;
    background: #2d2d2d;
    border-radius: 4px;
    margin: 1.5rem 0;
    padding: 1rem;
}

    .editor-colors pre {
        margin: 0;
        overflow-x: auto;
    }

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

    .copy-btn:hover {
        background: rgba(255,255,255,0.2);
    }

/* Responsive */
@media (max-width: 768px) {
    .detailsbox {
        flex-direction: column;
        padding: 10px;
    }

    .detailsleft {
        width: 100%;
        padding: 0;
    }

    .lefttext {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* 新增/修改的样式 */
.lefttop {
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

    .lefttop h2 {
        font-size: 28px;
        color: #333;
        margin: 0 0 20px 0;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

.lefttext {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

    .lefttext > div {
        display: flex;
        align-items: center;
        min-width: 180px;
        padding: 8px 15px;
        background: #f8f9fa;
        border-radius: 20px;
        transition: all 0.3s;
    }

        .lefttext > div:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }

    .lefttext img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        object-fit: contain;
    }

    .lefttext span {
        font-size: 14px;
        color: #666;
        white-space: nowrap;
    }

/* 移动端适配 */
@media (max-width: 768px) {
    .lefttext {
        flex-direction: column;
        align-items: flex-start;
    }

        .lefttext > div {
            width: 100%;
            min-width: auto;
            justify-content: flex-start;
        }

    .lefttop h2 {
        font-size: 22px;
    }
}


/* 评论输入区优化 */
.textarea {
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

    .textarea:hover {
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .textarea textarea {
        width: 100%;
        min-height: 100px;
        padding: 1rem;
        border: none;
        resize: vertical;
        font-size: 14px;
        line-height: 1.6;
        background: #f8f9fa;
    }

        .textarea textarea:focus {
            outline: none;
            background: #fff;
        }

.btn {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

    .btn button {
        padding: 8px 24px;
        background: #2196f3;
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s;
    }

        .btn button:hover {
            background: #1976d2;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(33,150,243,0.4);
        }

/* 留言列表优化 */
.Leaving {
    margin: 2rem 0;
}

.message {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

    .message:hover {
        transform: translateX(5px);
        box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    }

.titles {
    font-weight: 600;
    color: #2196f3;
    margin-right: 8px;
}

.messagetesxt {
    font-size: 12px;
    color: #888;
}

.message pre {
    white-space: pre-wrap;
    margin: 8px 0 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: inherit;
    line-height: 1.6;
    border-left: 3px solid #2196f3;
}

.Serial {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #888;
    min-width: 50px;
    justify-content: flex-end;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .message {
        flex-direction: column;
        gap: 1rem;
    }

    .Serial {
        justify-content: flex-start;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }
}